﻿namespace SPEditor.Core
{
    public class Constants
    {
        public static readonly string ErrorCategory = "SPEditor";

        public static readonly string QS_ItemId = "ItemId";
        public static readonly string QS_SiteUrl = "SiteUrl";
        public static readonly string QS_ListId = "ListId";
        public static readonly string QS_Source = "Source";

        public static readonly string[] HtmlEncodeFileTypes = {"txt", "xsl", "xml", "html", "htm"};

        // Status Bar Messages 
        public static readonly string StatusBarMsgReady = "Ready for editing.";
        public static readonly string StatusBarMsgSaved = "File Saved.";
        public static readonly string StatusBarMsgFileNotCheckedOut = "The file is not checked out. Editing is unavailable.";
        public static readonly string StatusBarMsgErrorSaving = "Error Saving.";
        public static readonly string StatusBarMsgFileCheckOutByUser = "The file is checked out by {0}. Editing is unavailable";

        // Mod Stat Messages 
        public static readonly string CheckOutStatustMessageOnlineEditable = "Checked out by you";
        public static readonly string CheckOutStatusMessageOnlineUneditable = "Checked out by {0}";
        public static readonly string CheckOutStatusMessageNone = "Checked in";
        public static readonly string CheckOutStatusMessageNotRequired = "Check out not required";

        public static readonly string StatusBarBaseCss = "statusBar";
        public static readonly string StatusBarInfo = "s4-status-s1";
        public static readonly string StatusBarGood = "s4-status-s2";
        public static readonly string StatusBarWarn = "s4-status-s3";
        public static readonly string StatusBarBad = "s4-status-s4";

        public static readonly string FileContentsWrapper = "<code id='editor'>{0}</code>";

        public static readonly string DateTimePattern = "dddd, dd MMMM yyyy HH:mm:ss";
    }
}